<template>
  <div>
    <el-card>
      <el-carousel :interval="4000" type="card" height="210px">
        <el-carousel-item v-for="url in imgUrl" :key="url">
          <el-image :src="url" :fit="fit"></el-image>
        </el-carousel-item>
      </el-carousel>
      <el-calendar v-model="value"></el-calendar>
    </el-card>
  </div>
</template>
<script>
export default {
  data() {
    return {
      imgUrl: [
        'http://ww1.sinaimg.cn/large/0084iIp6gy1gg3lxean94j30jg0c6gme.jpg',
        'http://ww1.sinaimg.cn/large/0084iIp6gy1gg3lyv1irqj30rs0kukel.jpg',
        'http://ww1.sinaimg.cn/large/0084iIp6gy1gg3ht0tfpqj31hc0p0k3k.jpg',
        'http://ww1.sinaimg.cn/large/0084iIp6gy1ggskikm1l3j324e16ze81.jpg',
        'http://ww1.sinaimg.cn/large/0084iIp6gy1ggskj952mkj332p1sc1kz.jpg'
      ],
      value: new Date(),
      fit: 'contain'
    }
  }
}
</script>
<style>
.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
.el-calendar {
  font-size: 12px;
  width: 400px;
}
.el-calendar-table .el-calendar-day {
  box-sizing: border-box;
  padding: 8px;
  width: 400px;
  height: 25px !important;
}
</style>
